package com.jeesite.modules.digitalize.entity.vo.resource;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author patronli
 * @Description: 资源库文件列表
 * @date 2023年09月12日 10:29:22
 */
@Data
public class ResourcesVo {
    public ResourcesVo() {
    }

    public ResourcesVo(Integer id, Integer parentId, Integer fileType, String fileName, String fileUrl, Date createDate) {
        this.id = id;
        this.parentId = parentId;
        this.fileType = fileType;
        this.fileName = fileName;
        this.fileUrl = fileUrl;
        this.createDate = createDate;
    }

    public ResourcesVo(Integer id, Integer parentId, Integer fileType, String fileName, String fileUrl, Date createDate,List<ResourcesVo> children) {
        this.id = id;
        this.parentId = parentId;
        this.fileType = fileType;
        this.fileName = fileName;
        this.fileUrl = fileUrl;
        this.createDate = createDate;
        this.children = children;
    }


    @ApiModelProperty("id")
    Integer id;
    @ApiModelProperty("parentId")
    Integer parentId;
    @ApiModelProperty("0 文件夹 1 文件")
    Integer fileType;
    @ApiModelProperty("文件文件夹名字")
    String fileName;
    @ApiModelProperty("文件地址")
    String fileUrl;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createDate;
    @ApiModelProperty("子文件")
    List<ResourcesVo> children;
}
